/*
 *   Copyright (c) 2010-2022, SIUFUNG
 */
package net.siufung.market.base.permit.service;


import net.siufung.market.base.permit.mapper.entity.Menu;
import net.siufung.market.base.permit.mapper.entity.Permit;
import net.siufung.mybatis.base.BaseService;

import java.util.List;


/**
 * 系统菜单表 数据服务
 *
 * @author 陈建峰
 * @since 2022-07-05 22:19:50
*/
public interface IMenuService extends BaseService<Menu> {

    /**
     * 创建菜单和权限
     * @param menu 菜单
     * @param permitList 权限列表
     * @return Boolean
     */
    Boolean save(Menu menu, List<Permit> permitList);

    /**
     * 更新菜单和权限
     * @param menu 菜单
     * @param permitList 权限列表
     * @return Boolean
     */
    Boolean updateById(Menu menu, List<Permit> permitList);

}